import java.util.Scanner;

public class mi {

    static Character[][] palya;
    static Character sajat;

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
	Scanner in = new Scanner(System.in);
	Integer sorok = in.nextInt();
	Integer oszlopok = in.nextInt();
	sajat = in.next().charAt(0);
	palya = new Character[oszlopok][sorok];
	for (int y = 0; y < sorok; y++) {
	    for (int x = 0; x < oszlopok; x++) {
		palya[x][y] = in.next().charAt(0);
	    }
	}

	// Logika


	// Hova lepunk
	System.out.println("x y");
    }
}
